package com.trainbook.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 车次表
 * </p>
 *
 * @author Dempsey
 * @since 2020-11-27
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("train")
@ApiModel(value = "Train", description = "车次表")
public class Train implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "车次名")
    @TableField("trainName")
    private String trainName;

    @ApiModelProperty(value = "开始时间")
    @TableField("startTime")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("endTime")
    private LocalDateTime endTime;

}
